# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=tty-share
pkgver=2.2.1
pkgrel=3
pkgdesc="Share your terminal over the Internet"
url="https://tty-share.com/"
arch="all !riscv64" # FTBFS
license="MIT"
makedepends="go"
source="https://github.com/elisescu/tty-share/archive/v$pkgver/tty-share-$pkgver.tar.gz"
options="chmod-clean !check" # no test suite

build() {
	go build \
		-trimpath \
		-ldflags "-s -w"
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="
a482a2551618a823bedda97f1284155b6df8681bfca29973f4f9511bbd6c7303ea31254d5985420acf974ed991e90438229e4caf4b817dccd997435b04b414d9  tty-share-2.2.1.tar.gz
"
